﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using DAL;
using TripAssistantDesktop.ViewModel;

namespace TripAssistantDesktop
{
    internal interface IMainWindowViewModel
    {
        Trip SelectedTrip { get; set; }
    }
    

    class MainWindowViewModel: ViewModelBase, IMainWindowViewModel
    {
      
        private ITripsNavigationViewModel _navigationViewModel;
        private ITripViewModel _tripViewModel;  
        public MainWindowViewModel(ITripsNavigationViewModel navigationViewModel, ITripViewModel tripViewModel)
        {
            _navigationViewModel = navigationViewModel;
            _tripViewModel = tripViewModel; 
        }

        private Trip _selectedTrip;

        public Trip SelectedTrip
        {
            get { return _selectedTrip; }
            set { _selectedTrip = value; }
        }
    }
}
